package edu.ccut.saturn.component.impl;

import edu.ccut.saturn.component.IActionComponentInfo;
import edu.ccut.saturn.component.IComponent;
import edu.ccut.saturn.component.SaturnComponentException;
import edu.ccut.saturn.component.loader.ComponentLoader;
import edu.ccut.saturn.component.xml.ISaturnElement;
import edu.ccut.saturn.component.xml.SaturnElement;

/**
 * Action component information implementation
 * 
 * @see IActionComponentInfo
 * @see SaturnLogicComponentInfo
 * 
 * @author LeslieGu
 * 
 */
public class SaturnActionComponentInfo extends SaturnLogicComponentInfo implements
		IActionComponentInfo {

	public SaturnActionComponentInfo(String symbolicName, String key,
			String name, String description) {

		super(symbolicName, key, name, description, null);
	}

	@Override
	protected ISaturnElement getRootElement() {
		ISaturnElement saturnActionElement = new SaturnElement(
				ComponentLoader.KEY_ACTION_ROOT);

		return saturnActionElement;
	}

	public IComponent createComponent() throws SaturnComponentException {
	//	logger.debug("create action component \"" + super.getFullKey() + "\"");
		return new SaturnActionComponent(this);
	}
}
